//
// CPSShockWave.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------







package org.ryzom.nel.threed;

import org.ryzom.nel.misc.IStream;

public class CPSShockWave extends CPSParticle {
  private long swigCPtr;

  public CPSShockWave(long cPtr, boolean cMemoryOwn) {
    super(nel3dJNI.CPSShockWave_SWIGUpcast(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

  public static long getCPtr(CPSShockWave obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nel3dJNI.delete_CPSShockWave(swigCPtr);
      }
      swigCPtr = 0;
    }
    super.delete();
  }

  public CPSShockWave(long nbSeg, float radiusCut, SWIGTYPE_p_CSmartPtrT_NL3D__ITexture_t tex) {
    this(nel3dJNI.new_CPSShockWave__SWIG_0(nbSeg, radiusCut, SWIGTYPE_p_CSmartPtrT_NL3D__ITexture_t.getCPtr(tex)), true);
  }

  public CPSShockWave(long nbSeg, float radiusCut) {
    this(nel3dJNI.new_CPSShockWave__SWIG_1(nbSeg, radiusCut), true);
  }

  public CPSShockWave(long nbSeg) {
    this(nel3dJNI.new_CPSShockWave__SWIG_2(nbSeg), true);
  }

  public CPSShockWave() {
    this(nel3dJNI.new_CPSShockWave__SWIG_3(), true);
  }

  public void setNbSegs(long nbSeg) {
    nel3dJNI.CPSShockWave_setNbSegs(swigCPtr, this, nbSeg);
  }

  public long getNbSegs() {
    return nel3dJNI.CPSShockWave_getNbSegs(swigCPtr, this);
  }

  public void setRadiusCut(float aRatio) {
    nel3dJNI.CPSShockWave_setRadiusCut(swigCPtr, this, aRatio);
  }

  public float getRadiusCut() {
    return nel3dJNI.CPSShockWave_getRadiusCut(swigCPtr, this);
  }

  public void serial(IStream f) {
    nel3dJNI.CPSShockWave_serial(swigCPtr, this, IStream.getCPtr(f), f);
  }

  public boolean completeBBox(SWIGTYPE_p_NLMISC__CAABBox box) {
    return nel3dJNI.CPSShockWave_completeBBox(swigCPtr, this, SWIGTYPE_p_NLMISC__CAABBox.getCPtr(box));
  }

  public boolean hasTransparentFaces() {
    return nel3dJNI.CPSShockWave_hasTransparentFaces(swigCPtr, this);
  }

  public boolean hasOpaqueFaces() {
    return nel3dJNI.CPSShockWave_hasOpaqueFaces(swigCPtr, this);
  }

  public long getNumWantedTris() {
    return nel3dJNI.CPSShockWave_getNumWantedTris(swigCPtr, this);
  }

  public void setUFactor(float value) {
    nel3dJNI.CPSShockWave_setUFactor(swigCPtr, this, value);
  }

  public float getUFactor() {
    return nel3dJNI.CPSShockWave_getUFactor(swigCPtr, this);
  }

  public boolean hasLightableFaces() {
    return nel3dJNI.CPSShockWave_hasLightableFaces(swigCPtr, this);
  }

  public boolean supportGlobalColorLighting() {
    return nel3dJNI.CPSShockWave_supportGlobalColorLighting(swigCPtr, this);
  }

  public void enumTexs(SWIGTYPE_p_std__vectorT_NLMISC__CSmartPtrT_NL3D__ITexture_t_t dest, IDriver drv) {
    nel3dJNI.CPSShockWave_enumTexs(swigCPtr, this, SWIGTYPE_p_std__vectorT_NLMISC__CSmartPtrT_NL3D__ITexture_t_t.getCPtr(dest), IDriver.getCPtr(drv), drv);
  }

  public void setZBias(float value) {
    nel3dJNI.CPSShockWave_setZBias(swigCPtr, this, value);
  }

  public float getZBias() {
    return nel3dJNI.CPSShockWave_getZBias(swigCPtr, this);
  }

}
